package com.wxh.concurrent;

import java.io.IOException;

/**
 * @ClassName: ProcessCreateQuestion
 * @Description: 进程创建问题
 * @Author wxh
 * @Date: 2021/3/18 15:14
 * @Version V1.0.0
 * @Since 1.8
 */
public class ProcessCreateQuestion {
    public static void main(String[] args) throws IOException {
        // 创建进程
        // 获取java runtime
        Runtime runtime = Runtime.getRuntime();
        Process process = runtime.exec("cmd /k start http://www.baidu.com");
        process.exitValue();
    }
}
